﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.IO;
using System.Linq;
using System.Security.Permissions;
using System.Text;
using System.Threading.Tasks;

namespace Raw1
{
    public class MonitorFactory
    {
        private static IMonitor _monitor;
        public static IMonitor CreateMonitor(Monitors monitorType)
        {

            switch (monitorType)
            {
                case Monitors.FileSystem:
                    _monitor = new FileSystemMonitor();
                    break;
                case Monitors.DatabaseSystem:
                    _monitor = new DatabaseMonitor();
                    break;
                default:
                    _monitor = null;
                    break;
            }

            return _monitor;
        }
    }
}
